home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 21
/
Cream of the Crop 21 (Terry Blount) (October 1996).iso
/
editor
/
auror300.zip
/
HELPUSER.AML
< prev
next >
Wrap
Text File
|
1996-07-17
|
3KB
|
115 lines
//--------------------------------------------------------------------
// HELPUSER.AML
// User's Guide Topics, (C) 1993-1996 by nuText Systems
//
// This macro displays a popup menu of User's Guide topics.
// Selecting a topic will display the User's Guide and position
// the cursor to the selected topic.
//
// Usage:
//
// Select this macro from the Macro List (on the Macro menu), or run it
// from the macro picklist <shift f12>.
//
// This macro can also be run by selecting User's Guide Topics from
// the Help menu.
//--------------------------------------------------------------------
// compile time macros and function definitions
include bootpath "define.aml"
// create an inline help topics buffer
databuf "helpuser"
"Bookmarks"
"Border Options"
"Character Sets"
"Clipboard"
"Colors"
"Command Line Options"
"Configuration"
"Confirmation Options"
"Creating and Loading Files"
"Cursor Commands"
"Default File Extensions"
"Desktop Options"
"Dos Shell Commands"
"Editing Options"
"File Commands"
"File Lists"
"File Manager Commands"
"File Manager Options"
"File Manager Sorting"
"File Manager"
"File Name Completion"
"Folds"
"Getting Started"
"Global Settings"
"Installation"
"Key Definitions"
"Key Macros"
"Macro Commands"
"Margins and Tabs"
"Marking Blocks"
"Marking Files"
"Menu Definitions"
"Menus"
"Miscellaneous Options"
"Modifying Text"
"Mouse Definitions"
"Mouse Options"
"Multi-Key Definitions"
"Open Options"
"Panning the Screen"
"Performance Tips"
"Print Options"
"Printing"
"Prompt History"
"Prompts"
"Regular Expression Searching"
"Save Options"
"Saving and Discarding Files"
"Scrolling"
"Search and Replace"
"Status Line"
"Syntax Highlighting"
"System Options"
"System Requirements"
"Tool Bar"
"Translation Options"
"Translation"
"Undo and Redo"
"Video Modes"
"Video Options"
"Window Options"
"Window Settings"
"Window Styles"
"Windows"
"Word Processing Options"
end
// name the buffer so the menu position can be remembered
setbufname "helpuser"
// display the buffer in a popup menu and get the topic selected
topic = popup (getcurrbuf) "User's Guide Topics" 29
// destroy the help topics buffer
destroybuf
// display the selected topic
if topic then
helpfile = getbootpath + "doc\\" +
(if? topic [1:3] == "Reg" "regexp" "user") + ".dox"
if file? helpfile then
open helpfile
// make read/only
bufferflag '+r'
gotopos 1 1
if find topic + '' then
send "onfound" length topic
end
else
msgbox helpfile + " not found."
end
end